<%@ page language="java" import="java.util.*,com.hs.core.db.*,com.hs.auth.*,com.hs.auth.model.*" pageEncoding="utf-8"%>
<%
   String pageStr = (String)request.getAttribute("pagestr");
   List datalist = (List)request.getAttribute("datalist");
   String pagenum = (String)request.getAttribute("pagenum");
   String pagecount = (String)request.getAttribute("pagecount");
   
	
   int pagenumInt = Integer.parseInt(pagenum);
   int pagecountInt = Integer.parseInt(pagecount);
   String orderName = (String)request.getAttribute("orderName");
   String orderNum = (String)request.getAttribute("orderNum");  
   
   String imagename = (String)request.getAttribute("imagename");
   String datatype = (String)request.getAttribute("datatype");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<%@ include file="../include1.jsp"%> 
 <script src="<%=basePath %>app/javascripts/transform.js"></script>
 <script>
 //排序
  function orderPageLocal(cstr,orderNum){ 
      var convalue = form1.action;
      var datatype = document.getElementById("datatype").value;
	  if(convalue !=null && typeof(convalue) !=undefined){
 		  	if(convalue.indexOf("?")!=-1 ){
		  		convalue +="&orderName="+cstr+"&orderNum="+orderNum;
		  	}else {
		  		convalue +="?orderName="+cstr+"&orderNum="+orderNum; 
		  	}
		  	form1.action = convalue+"&datatype="+datatype;
		  	form1.submit();
	  } 
 }
 function viewData(dt){  
 	var url = form1.action;
 	form1.action = url+"?datatype="+dt;
	form1.submit();
 }
 
 </script>
</head>
<body>
<div class="cont"> 
    <div class="sear">
       <form name=form1 action ="<%=basePath %>muti/dataminemodernList.do" method=post>
         <input type=hidden value=<%=datatype %> name=datatype id=datatype />
    	<table width="99%" border="0" cellspacing="0" cellpadding="0" class="deta_list_sear"> 
    		<tr>
    			<td width="60%" align=center><strong><font color=red size=4>多囊卵巢综合征现代数据挖掘信息</font></strong></td> 
    			<td width="40%" align=center><font   size=3><input type=radio value=1 name=datatype onclick="viewData('1')" <%if(null == datatype || "null".equals(datatype) || "1".equals(datatype)){out.println(" checked");} %>/> 中药对&nbsp;&nbsp;<input type=radio value=2 name=datatype onclick="viewData('2')" <%if("2".equals(datatype)){out.println(" checked");} %>/>穴位对</font></td> 
    		</tr>
    	</table>
    	</form>
   </div> 
   <div class="deta_sear_list">
        <dl>
     <table border="0" cellspacing="0" cellpadding="0"   class="list">
      <tr>
      <td colspan=4 align=left><strong><font color=red size=3>依赖关系网络图</font></strong></td>
      </tr>
      <tr>
      <td colspan=4><img src="<%=basePath %>muti/images/<%=imagename %>" width="100%" border=1 alt="依赖关系网络" /></td>
      </tr>
      <tr>
        <th width="10%">序号</th>  
        <th width="60%"><a href="javaScript:orderPageLocal('CONTENT','<%=OrderTool.getOrderNum("CONTENT",orderName,orderNum)%>');">名称&nbsp;&nbsp;<%=OrderTool.getOrderImage(basePath,OrderTool.getOrderNum("CONTENT",orderName,orderNum))%></a></th> 
        <th width="15%"><a href="javaScript:orderPageLocal('ZHICHIDU','<%=OrderTool.getOrderNum("ZHICHIDU",orderName,orderNum)%>');">支持度&nbsp;&nbsp;<%=OrderTool.getOrderImage(basePath,OrderTool.getOrderNum("ZHICHIDU",orderName,orderNum))%></a></th>  
        <th width="15%"><a href="javaScript:orderPageLocal('ZHIXINGDU','<%=OrderTool.getOrderNum("ZHIXINGDU",orderName,orderNum)%>');">置信度&nbsp;&nbsp;<%=OrderTool.getOrderImage(basePath,OrderTool.getOrderNum("ZHIXINGDU",orderName,orderNum))%></a></th> 
      </tr>
     <% if(null != datalist && datalist.size()>0){ 
      		    for(int i =0;i<datalist.size();i++){
      			    Map dm = (Map)datalist.get(i);  
      %>
      <tr>
        <td align="center"><%=(pagecountInt*(pagenumInt-1))+i+1 %></td> 
        <td><%=StringUtilTool.NULL2Blank(dm.get("CONTENT")+"") %></td> 
        <td align=center><%=StringUtilTool.NULL2Blank(dm.get("ZHICHIDU")+"") %></td>
        <td align=center><%=StringUtilTool.NULL2Blank(dm.get("ZHIXINGDU")+"")%></td>  
            </tr> 
      <%}%> 
      <%}else{ %>
      <tr>
        <td align="center" colspan="4"><font color="red">没有符合查询条件的结果</font></td>
      </tr>
      <%}%>
      <tr>
        <td align="center" colspan="4"><div class="page">
    <p>
       <%=pageStr %>
    </p> 
</div></td>
      </tr>
    </table>  
    </dl>
       
   </div>
</div>

</body>
</html> 
